package com.hntest.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/*
*
* 实名认证
* */

public class RealAuth extends BaseAuditDomain implements Serializable {
    private static final long serialVersionUID = 7886145185296157253L;
    public static final int SEX_MALE = 0;//男
    public static final int SEX_FEMALE = 1;//女

    private int realauthid;
    private String realname;//真实姓名
    private Integer sex = 0;//性别
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date borndate;//出生日期
    private String idnumber;//证件号码
    private String address;//证件地址
    private String image1;//身份证正面
    private String image2;//身份证反面




    public String getSexDisplay(){
        return sex==0?"男":"女";
    }

    public int getRealauthid() {
        return realauthid;
    }

    public void setRealauthid(int realauthid) {
        this.realauthid = realauthid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImage1() {
        return image1;
    }

    public void setImage1(String image1) {
        this.image1 = image1;
    }

    public String getImage2() {
        return image2;
    }

    public void setImage2(String image2) {
        this.image2 = image2;
    }

    @Override
    public String toString() {

        return super.toString()+
                "RealAuth{" +
                "realauthid=" + realauthid +
                ", realname='" + realname + '\'' +
                ", sex=" + sex +
                ", borndate='" + borndate + '\'' +
                ", idnumber='" + idnumber + '\'' +
                ", address='" + address + '\'' +
                ", image1='" + image1 + '\'' +
                ", image2='" + image2 + '\'' +



                '}';
    }
}
